#ifndef REVMAP_H
#define REFMAP_H

typedef struct sector_info {
	sector_t sector;
	int disknum;
}sector_info_t;

typedef struct raid10_sector_info {
	sector_info_t devs[0];
}r10_sector_info_t;

/* 
 * Mapping Functions.
 */

void raid456_find_phys(raid5_conf_t *conf, sector_t r_sector, sector_info_t *s_info);
sector_t raid456_find_virt(raid5_conf_t *conf, sector_info_t *s_info);

void raid10_find_phys(raid10_conf_t *conf, sector_t r_sector, r10_sector_info_t *s_info);
sector_t raid10_find_virt(raid10_conf_t *conf, sector_info_t *s_info);

#endif
